//
//  Comments.h
//  Truffle
//
//  Created by Averbouch David on 05/03/10.
//  Copyright 2010 Averbouch. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "ServiceDetailsViewController.h"

@class CommentsAdd, ServiceDetailsViewController, Service;

@interface Comments : UIViewController <RestConnectionDelegate>{

	CommentsAdd * commentADD;
	ServiceDetailsViewController *service;
	UILabel *titre;
	UILabel *commentaire;
	NSInteger positionFrame;
	NSInteger indexPass;
	Service *assignedService;
	NSString *entete;
	NSString *contenu;
	NSMutableArray *listcom;
	RestConnection *restConnection;
	IBOutlet UIScrollView *maScrollView;
	IBOutlet UIActivityIndicatorView *activityIndicator;

	NSMutableArray *controls;
}

@property(nonatomic, copy) ServiceDetailsViewController *service;
@property(nonatomic, copy) UILabel *titre;
@property(nonatomic, copy) UILabel *commentaire;
@property(nonatomic, copy) NSString *entete;
@property(nonatomic, copy) NSString *contenu;
@property(nonatomic, assign) Service *assignedService;
@property(nonatomic, assign) NSInteger indexPass;
@property(nonatomic, copy) NSMutableArray *listcom;
@property(nonatomic, retain) UIScrollView *maScrollView;
@property(nonatomic, readwrite, retain) NSMutableArray *controls;

- (void) writeComments;
- (NSInteger) countLines:(NSString *)elem;
- (NSString *) chgBreakLine:(NSString *)text;

@end

